current_path := $(shell pwd)
kernel_path := /home/wlz/app/linux/ATOMPI-CA1_SDK_v1.1/kernel/
# obj-m :=readkey.o
obj-m += timeApp.o
CC :=/home/wlz/app/gcc/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc

all: modules

modules:
	make -C $(kernel_path) M=$(current_path) modules ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- 
clean: 
	make -C $(kernel_path) M=$(current_path) clean

.PHONY: all clean